package kr.hkit.powerjava.chapter08.submit;

class Book {
	
	private String title, author;

	public Book(String title, String author) {
		this.title = title;
		this.author = author;
	}

	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	
	@Override
	public String toString() {
		return "책의 제목: " + title + 
				"\n" +"책의 저자: " + author ;
	}
}
